package main

import "fmt"

func f1() {
	fmt.Println("f1")
}
func f2() {
	fmt.Println("f2")
}
func f3() {
	fmt.Println("f3")
}

func test() {
	defer f1()
	defer f2()
	defer f3()

	fmt.Println("test")
}

func main() {
	test()
	fmt.Println("end")
}
